package com.yanh.merchant.service;

import com.yanh.common.exception.BusinessException;

public interface ISmsService {

    /**
     * 发送手机验证码
     * @param phone 手机号
     * @return 验证码对应的key
     */
    String sendMsg(String phone);


    /**
     *  校验手机验证码
     * @param phone 手机号
     * @param verifiyCode 验证码
     */
    Boolean checkVerifiyCode(String phone,String verifiyCode) throws BusinessException;
}
